/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.jonasjelten.jcalc.exception;

import de.jonasjelten.jcalc.parser.JExpressionParser;

/**
 *
 * @author michael
 */
public class JExpressionParserRegistrationInvalidAliasException extends JExpressionParserException {

    /**
     * Creates a new instance of <code>JExpressionParserRegistrationInvalidAliasException</code> without detail message.
     */
    public JExpressionParserRegistrationInvalidAliasException() {
        super("Exception while registering JExpressionParser to JParser: Alias invalid.");
    }


    /**
     * Constructs an instance of <code>JExpressionParserRegistrationInvalidAliasException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public JExpressionParserRegistrationInvalidAliasException(String msg) {
        super(msg);
    }

    public JExpressionParserRegistrationInvalidAliasException(String alias, JExpressionParser jExpressionParser) {
        super("Exception while registering JExpressionParser \""+jExpressionParser+"\" to JParser: Alias \""+alias+"\" invalid.");
    }
}
